|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPER.rover.StatsLog
Allows for the logging of program events in a format easily read into Microsoft Excel or other statistics software.
Constructor Summary | |
StatsLog()
Creates a new instance of StatsLog |
Method Summary | |
static void |
initLogFile(java.lang.String name)
Initializes the log file and prints the column headers to the file. |
static void |
print(int event)
Print a string to the logfile with a timestamp for the given event. |
static void |
print(int event,
boolean printToConsole)
Print a string to the logfile with a timestamp for the given event. |
static void |
print(int event,
int value)
Print a string to the logfile with a timestamp for the given event and print the data value. |
static void |
print(int event,
int value,
boolean printToConsole)
Print a string to the logfile with a timestamp for the given event and print the data value. |
static void |
println(int event)
Prints a line to the logfile with a timestamp for the given event. |
static void |
println(int event,
boolean printToConsole)
Print a line to the logfile with a timestamp for the given event. |
static void |
println(int event,
int value)
Prints a line to the logfile with a timestamp for the given event and prints the data value. |
static void |
println(int event,
int value,
boolean printToConsole)
Print a line to the logfile with a timestamp for the given event and print the data value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INIT_LOG
public static final int START_ATTRACT
public static final int STOP_ATTRACT
public static final int START_RECEIVING_PANORAMA
public static final int STOP_RECEIVING_PANORAMA
public static final int START_MISSION_CENTRAL
public static final int STOP_MISSION_CENTRAL
public static final int START_POV
public static final int STOP_POV
public static final int TRY_AGAIN_BUTTON
public static final int QUIT_BUTTON
public static final int MIS_TIMEOUT
public static final int POV_TIMEOUT
public static final int TURN
public static final int DRIVE
public static final int FIND_ROCK
public static final int APPROACH_ROCK
public static final int ANALYZE_ROCK
public static final int SCAN
public static final int SEND_EMAIL
public static final int PANORAMA
public static final int TURN_HEAD
public static final int OBSTACLE_DETECTED_ERROR
public static final int HIT_WALL_ERROR
public static final int CAMERA_TIMEOUT_ERROR
public static final int CEREB_TIMEOUT_ERROR
public static final int STAYTON_IO_ERROR
public static final int BATTERY_LOW_ERROR
public static final int COMM_DEAD_ERROR
public static final int WRONG_STAYTON_VERSION_ERROR
public static final int KILLED_ERROR
public static final int CANT_START_ERROR
public static final int UNKNOWN_PACKET_TYPE_ERROR
public static final int INVALID_PACKET_LENGTH_ERROR
public static final int SMTP_FAILED_ERROR
public static final int BAD_INPUT_ERROR
public static final int STAYTON_INVALID_LENGTH_ERROR
public static final int STAYTON_UNKNOWN_TYPE_ERROR
public static final int HL_CONTINUE_ERROR
public static final int ERROR_SUCCESS
public static final int UNKNOWN_ERROR
public static final int ERROR_FIXED
public static final int ERROR_FATAL
public static final int PROGRAM_CLOSED
Constructor Detail |
public StatsLog()
Method Detail |
public static void initLogFile(java.lang.String name)
public static void println(int event)
public static void println(int event, int value)
public static void println(int event, boolean printToConsole)
public static void println(int event, int value, boolean printToConsole)
public static void print(int event)
public static void print(int event, int value)
public static void print(int event, boolean printToConsole)
public static void print(int event, int value, boolean printToConsole)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |